package com.innodata.riskEngine.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author liboshuai
 * @Date 2023/11/2 17:41
 */
@Component
@ConfigurationProperties(prefix = "risk.rule")
public class KafkaRiskRuleProperties {
    private String producerTopic;
    private String consumerTopic;
    private String consumerGroup;

    // getters and setters

    public String getProducerTopic() {
        return producerTopic;
    }

    public void setProducerTopic(String producerTopic) {
        this.producerTopic = producerTopic;
    }

    public String getConsumerTopic() {
        return consumerTopic;
    }

    public void setConsumerTopic(String consumerTopic) {
        this.consumerTopic = consumerTopic;
    }

    public String getConsumerGroup() {
        return consumerGroup;
    }

    public void setConsumerGroup(String consumerGroup) {
        this.consumerGroup = consumerGroup;
    }
}
